package cn.com.flower.passport.pojo.param;

import lombok.Data;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class UserLoginInfoParam implements Serializable {

    /**
     * 用户名
     */
    @NotNull(message = "请提交用户名")
    private String username;

    /**
     * 密码
     */
    @NotNull(message = "请提交密码")
    @Pattern(regexp = "^[a-zA-Z0-9]{6,20}$", message = "密码格式错误")
    private String password;
}
